package com.mapper;

import com.pojo.Account;
import com.pojo.RightClassOne;

import java.util.List;

public interface LoginMapper {

    /**
     * 根据用户名和密码查询用户信息
     * @return
     */
    Account LoginReturnAccountMsgByUsernameAndPassword(Account account);

    /**
     * 通过角色id查询所有菜单信息
     * @param roleId
     * @return
     */
    List<RightClassOne> thisAccountAllRightClassById(Long roleId);

    List<RightClassOne> thisAccountRightDoByRoleId(Long i);

    int addLoginTime(Account account);

    Account getAccountByNameAndPhone(Account account);

    List<RightClassOne> thisAccountRightFrontStageList(Long roleId);

}
